package com.xlh.dto.user;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 班级信息结果集
 * <p>
 * Created by lx on 2019/3/19 0019.
 */
@Data
public class ClassInfoDTO {

    @ApiModelProperty(value = "班级id")
    private Long id;

    @ApiModelProperty(value = "班级名称")
    private String name;

    @ApiModelProperty(value = "年级")
    private String grade;

    @ApiModelProperty(value = "学生人数")
    private Long studentNum;

    @ApiModelProperty(value = "是否结课 true：已结课 false：未结课")
    private Boolean ended;

    @ApiModelProperty(value = "用户id")
    private Long classUserId;

    public Long getStudentNum() {
        return studentNum == null ? 0L : studentNum;
    }
}
